package cn.g31010.sip.component
{
	import flash.events.MouseEvent;
	
	import flexlib.mdi.containers.MDIWindow;

	public class Windows extends MDIWindow
	{
		public function Windows()
		{
			super();
			titleBarOverlay.addEventListener(MouseEvent.MOUSE_DOWN, _startDrag, false, 0, true);
			addEventListener(MouseEvent.MOUSE_UP,_stopDrag);
		}
		
		private function _startDrag(e:MouseEvent):void{
			if(this.draggable)
			this.startDrag();
		}
		private function _stopDrag(e:MouseEvent):void{
			this.stopDrag();
		}    
		
	}
}